home *** CD-ROM | disk | FTP | other *** search
/ Nejlepší hry / Nejlepsi hry.iso / hry / 6zenichu / 6+1 install_txt.exe / 6 zenichu a 1 navic.exe / scripts / DefineButton2_2405 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2003-11-28  |  1.5 KB  |  63 lines

  1. on(release){
  2.    if(_root.poz == "b")
  3.    {
  4.       if(0 < _root.draglej && _root.draglej != 5)
  5.       {
  6.          _root.d_venca.l = "mon_ns_" add random(_root.NS_NUMBER) add "_100";
  7.          _root.d_venca.i = "go";
  8.       }
  9.       else if(_root.ii44 == 2)
  10.       {
  11.          _root.d_venca.l = "mon_046_100";
  12.          _root.d_venca.i = "go";
  13.       }
  14.       else if(_root.ii43 == 2 || _root.ii45 == 2)
  15.       {
  16.          if(_root.ii43 == 2)
  17.          {
  18.             _root.itembar_remove(43);
  19.             _root.ii43 = 3;
  20.          }
  21.          else
  22.          {
  23.             _root.itembar_remove(45);
  24.             _root.ii45 = 3;
  25.          }
  26.          _root.venca.gotoAndPlay("kos");
  27.          _root.d_venca.l = "mon_044_100";
  28.       }
  29.       else if(_root.ii43 == 1)
  30.       {
  31.          _root.d_venca.l = "mon_045h_100";
  32.          _root.d_venca.i = "go";
  33.       }
  34.       else if(_root.ii44 == 1)
  35.       {
  36.          _root.d_venca.l = "mon_045f_100";
  37.          _root.d_venca.i = "go";
  38.       }
  39.       else if(_root.ii45 == 1)
  40.       {
  41.          _root.d_venca.l = "mon_045k_100";
  42.          _root.d_venca.i = "go";
  43.       }
  44.       else if(_root.st_chirurg < 2)
  45.       {
  46.          _root.d_venca.l = "mon_043_100";
  47.          _root.d_venca.i = "go";
  48.       }
  49.       else
  50.       {
  51.          _root.d_venca.l = "mon_044_100";
  52.          _root.d_venca.i = "go";
  53.       }
  54.       _root.stopdragall();
  55.       _root.hideall();
  56.    }
  57.    else
  58.    {
  59.       _root.venca.gotoAndPlay(_root.poz add "b");
  60.       _root.stopdragall();
  61.    }
  62. }
  63.